<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core" 
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:p="http://primefaces.org/ui"
     >
      
       <h:head></h:head>
 
     <body>   
     	<h:form>
     	
     	<p:growl id="mensagem"/>
     		<p:panel header="listagem Sala">
     			<h:panelGrid columns="1">
     			
					<p:dataTable id="dataTable" value="#{salaBean.listSala}"
						var="cidade" paginator="true" rows="10"
						rowsPerPageTemplate="5,10,15"
						emptyMessage="Nenhum registro encontrado."	>
		    				
		    					<p:column id="id" headerText="Codigo">
		    						<h:outputText  value="#{sala.id}"/>
		    					</p:column>
		    					
		    					<p:column id="nome" headerText="Nome">
		    						<h:outputText  value="#{sala.nome}"/>
		    					</p:column>
		    					
		    					<p:column id="estado" headerText="Estado">
		    						<h:outputText  value="#{sala.estado}"/>
		    					</p:column>
		    					
					</p:dataTable>     		
     			
     			</h:panelGrid>
     			
     			<p:commandButton value="Voltar" action="/restrito/telaInicial.xhtml" immediate="true" ajax="false"/>
     		</p:panel>
     
   
   
     	</h:form>
     
     </body>

</html>